package top.healthylife.gateway.platform.youshu.api.api;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.youshu.api.utils.YoushuHttpUtil;
import top.healthylife.gateway.platform.youshu.dto.apia004.req.YoushuReqBusinessContactInformationDto;
import top.healthylife.gateway.platform.youshu.dto.apia004.res.YoushuResBusinessContactInfoDto;

/**
 * @author : GaoZeXi
 * @date 2021/8/8 14:16
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20, apiName = "工商照面信息", info = "接口Id:A004 根据统一社会信用代码、注册号或企业名称或有数企业 ID 查询企业照面信息。")
public class YoushuBusinessContactInformationApi implements ParentFace<YoushuReqBusinessContactInformationDto, YoushuResBusinessContactInfoDto> {

    static final String API_CODE = "A004";

    @Override
    public YoushuResBusinessContactInfoDto execute(YoushuReqBusinessContactInformationDto t)  {
        return YoushuHttpUtil.httpRequest(t,API_CODE,YoushuResBusinessContactInfoDto.class);
    }
}
